package test.test.controller;

import framework.annotation.Controller;
import framework.annotation.Inject;
import framework.annotation.RequestMapping;
import test.test.my.singletest.Phone;
import test.test.util.StrUtil;

/**
 * @author 马洁
 * @date 2020/3/11 - 13:37
 */
@Controller
@RequestMapping()
public class HiddenController {
    @Inject
    private StrUtil strUtil;
    @Inject
    private Phone phone;

    public HiddenController() {

    }

    public void hello() {
        System.out.println("You are find me");
    }

    public void strTest() {

        try {
            System.out.println("变大字符串, " + strUtil.upperChar('c'));
        } catch (NullPointerException e) {
            e.printStackTrace();
        }
    }

    public void phoneTest() {
        phone.call();
    }
}
